<script setup>
defineProps({
  title: {
    type: String,
  },
  small: {
    type: String,
  },
});
</script>

<template>
  <div class="container">
    <div class="pinal">
      <div class="title">
        <h3>
          {{ title }} <span class="small">{{ small }}</span>
        </h3>
        <span class="hedEnd"><slot name="hed"></slot></span>
      </div>
      <slot name="mid"></slot>
    </div>
  </div>
</template>

<style scoped lang="scss">
.pinal {
  .title {
    display: flex;
    background-color: #f5f5f5;
    width: 100%;
    height: 115px;
    text-align: left;
    align-items: center;
    position: relative;
    h3 {
      color: #333;
      font-size: 30px;
      height: 35px;
      .small {
        margin-left: 10px;
        font-size: 18px;
        color: #666;
      }
    }
    .hedEnd {
      position: absolute;
      right: 0;
      top: 45px;
      width: 100px;
      display: flex;
      align-items: center;
      height: 35px;
      line-height: 35px;
      font-size: 18px;
      &:hover {
        color: $sucColor;
      }
    }
  }
}
</style>
